#include<iostream>
#include<algorithm>
using namespace std;

int arr[105];

int main(void) {
	int n;
	cin >> n; 
	for(int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	int ans = 99999;
	int s1, s2;
	sort(arr, arr+n);
	for(int i = 1; i < n; i++) {
		if(arr[i] - arr[i-1] < ans) {
			ans = arr[i] - arr[i-1];
			s1 = arr[i];
			s2 = arr[i-1];
		}
	}
	cout << "s1 = " << s1 << ends << "s2 = " << s2 << endl;
	cout << ans << endl;
	return 0;
}
